import React, { useState, useRef } from 'react'
import ReactDOM from 'react-dom'
import useConnection from './src/components/Chat/useConnection'
import wsController from './src/messages/wsController'
import Chat from './src/components/Chat/Chat'
import './style.less'

function App() {
    const { Bar, con } = useConnection(wsController)

    console.log(con)

    return <div className='chat-container'>
        {Bar}
        <Chat con={con} />
    </div>
}

ReactDOM.render(<App />, document.getElementById('root'))